package com.schoolcardinfo.beans;

public class RechargeInfo {
	private int rid;//充值记录ID
	private String rtime;//充值时间
	private double rmoney;//充多少
	private int sid;//卡号
	private int rstatus;//充值是否成功̬
	
	@Override
	public String toString() {
		return "RechargeInfo [rid=" + rid + ", rtime=" + rtime + ", rmoney=" + rmoney + ", sid=" + sid + ", rstatus="
				+ rstatus + "]";
	}

	public int getRid() {
		return rid;
	}

	public void setRid(int rid) {
		this.rid = rid;
	}

	public String getRtime() {
		return rtime;
	}

	public void setRtime(String rtime) {
		this.rtime = rtime;
	}

	public double getRmoney() {
		return rmoney;
	}

	public void setRmoney(double rmoney) {
		this.rmoney = rmoney;
	}

	public int getSid() {
		return sid;
	}

	public void setSid(int sid) {
		this.sid = sid;
	}

	public int getRstatus() {
		return rstatus;
	}

	public void setRstatus(int rstatus) {
		this.rstatus = rstatus;
	}

	public RechargeInfo(int rid, String rtime, double rmoney, int sid, int rstatus) {
		super();
		this.rid = rid;
		this.rtime = rtime;
		this.rmoney = rmoney;
		this.sid = sid;
		this.rstatus = rstatus;
	}

	public RechargeInfo() {
		super();
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + rid;
		long temp;
		temp = Double.doubleToLongBits(rmoney);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result + rstatus;
		result = prime * result + ((rtime == null) ? 0 : rtime.hashCode());
		result = prime * result + sid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RechargeInfo other = (RechargeInfo) obj;
		if (rid != other.rid)
			return false;
		if (Double.doubleToLongBits(rmoney) != Double.doubleToLongBits(other.rmoney))
			return false;
		if (rstatus != other.rstatus)
			return false;
		if (rtime == null) {
			if (other.rtime != null)
				return false;
		} else if (!rtime.equals(other.rtime))
			return false;
		if (sid != other.sid)
			return false;
		return true;
	}
}
